package com.ls.pattern.behavior.strategy;

public class DuchB extends Duck {
    public DuchB() {
        flyBehavior = new BadFlyBehavior();
        quackBehavior = new GaGaQuackBehavior();
    }

    @Override
    public void display() {
        System.out.println("鸭子B");
    }
}
